package com.sky.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(value = "PasswordEditDTO", description = "修改密码接收数据模型")
public class PasswordEditDTO implements Serializable {

    //员工id
    @ApiModelProperty(value = "员工id", required = true)
    @NotNull(message = "id为空")
    private Long empId;

    //旧密码
    @ApiModelProperty(value = "旧密码", required = true)
    @NotBlank(message = "旧密码为空")
    private String oldPassword;

    //新密码
    @ApiModelProperty(value = "新密码", required = true)
    @NotNull(message = "新密码为空")
    private String newPassword;

}
